package com.peakmain.wanandroid.mymodule.animation;

import android.support.v4.view.ViewPager;

/**
 * @author ：Peakmain
 * version ：1.0
 * createTime ：2018/10/12 0012 下午 3:09
 * mail : 2726449200@qq.com
 * describe ：
 */
public class GankTransformer {
    public static ViewPager.PageTransformer getTransformer(TransType type) {
        return getTransformer(type,-1000f);
    }

    public static ViewPager.PageTransformer getTransformer(TransType type, float maxValue) {
        ViewPager.PageTransformer transformer =null;
        switch (type) {
            case H3D:
                transformer = new PageTransformer3D(maxValue);
                break;
            case H3DINTO:
                transformer = new PageTransformer3DInTo(maxValue);
                break;
            case FADEIN:
                transformer =new PageTransformerFadeIn(maxValue);
                break;

            case TANDEM:
                transformer = new PageTransformerTandem(maxValue);
                break;
            case OVERLAP:
                transformer = new PageTransformerOverlap(maxValue);
                break;
            case Gallery3D:
                transformer=new PageTransformer3DGallery(maxValue);
                break;
        }
        return transformer;
    }
}
